package com.ruoyi.edubuy.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 购物车X对象 show_shopping
 *
 * @author lsj
 * @date 2021-07-13
 */
public class ShowShopping extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 购物车id
     */
    private Long shoppingId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private String userId;

    /**
     * 商品
     */
    @Excel(name = "商品")
    private String shoppingShop;

    /**
     * 商品价格
     */
    @Excel(name = "商品价格")
    private BigDecimal shoppingPrice;

    /**
     * 数据库没有本字段
     */
    private Long courseId;

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Long getShoppingId() {
        return shoppingId;
    }

    public void setShoppingId(Long shoppingId) {
        this.shoppingId = shoppingId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getShoppingShop() {
        return shoppingShop;
    }

    public void setShoppingShop(String shoppingShop) {
        this.shoppingShop = shoppingShop;
    }

    public BigDecimal getShoppingPrice() {
        return shoppingPrice;
    }

    public void setShoppingPrice(BigDecimal shoppingPrice) {
        this.shoppingPrice = shoppingPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("shoppingId", getShoppingId())
                .append("userId", getUserId())
                .append("shoppingShop", getShoppingShop())
                .append("shoppingPrice", getShoppingPrice())
                .toString();
    }
}
